<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" >

  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/turbolinks/5.2.0/turbolinks.js" integrity="sha256-iM4Yzi/zLj/IshPWMC1IluRxTtRjMqjPGd97TZ9yYpU=" crossorigin="anonymous"></script>
  <link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css?family=Cousine|Inconsolata" rel="stylesheet">
  <link rel="shortcut icon" type="image/png" href="/favicon.png">

  <link rel="stylesheet" href="/css/style.css">
  <link rel="stylesheet" href="/css/css/fontawesome-all.min.css">
  <link rel="stylesheet" href="/css/css/work-sans-v7.css">
  <script src="/js/main.js"></script>

  <!-- Begin Jekyll SEO tag v2.6.1 -->
<title>Hive Nodes | Hive Developer</title>
<meta name="generator" content="Jekyll v4.0.0" />
<meta property="og:title" content="Hive Nodes" />
<meta property="og:locale" content="en_US" />
<meta name="description" content="Applications that interface directly with the Hive blockchain will need to connect to a hived node. Developers may choose to use one of the public API nodes that are available, or run their own instance of a node." />
<meta property="og:description" content="Applications that interface directly with the Hive blockchain will need to connect to a hived node. Developers may choose to use one of the public API nodes that are available, or run their own instance of a node." />
<link rel="canonical" href="https://developers.hive.io/quickstart/hive_full_nodes" />
<meta property="og:url" content="https://developers.hive.io/quickstart/hive_full_nodes" />
<meta property="og:site_name" content="Hive Developer" />
<meta property="og:type" content="article" />
<meta property="article:published_time" content="2020-08-26T11:52:22-07:00" />
<script type="application/ld+json">
{"description":"Applications that interface directly with the Hive blockchain will need to connect to a hived node. Developers may choose to use one of the public API nodes that are available, or run their own instance of a node.","mainEntityOfPage":{"@type":"WebPage","@id":"https://developers.hive.io/quickstart/hive_full_nodes"},"@type":"BlogPosting","url":"https://developers.hive.io/quickstart/hive_full_nodes","headline":"Hive Nodes","dateModified":"2020-08-26T11:52:22-07:00","datePublished":"2020-08-26T11:52:22-07:00","@context":"https://schema.org"}</script>
<!-- End Jekyll SEO tag -->


  
</head>
<body>
<header>
  <h1>
    <button type="button" class="open-nav" id="open-nav"></button>
    <a href="/"  class="logo-link"><img src="/images/logotype_black.svg" height="40" alt="Hive Developer logo"></a>
  </h1>

  
  <form action="/search/" method="get">
    <input type="text" name="q" id="search-input" placeholder="Search">
    <input type="submit" value="Search" style="display: none;">
  </form>
  

  <div id="sidebar" class="sidebar">
	
	
	
		
    <section class="pnl-main-nav-section main-nav-section" url="/">
		<h6 class="ctrl-nav-section title">Introduction</h6>
		<ul class="cont-nav-section content">
			
				
					
					
						
						<li><a href="/#introduction-welcome">Welcome to Hive</a></li>
						
					
				
			
		</ul>
	</section>
	
		
    <section class="pnl-main-nav-section main-nav-section" url="/quickstart/">
		<h6 class="ctrl-nav-section title">Quickstart</h6>
		<ul class="cont-nav-section content">
			
				
					
					
						
						<li><a href="/quickstart/#quickstart-choose-library">Choose Library</a></li>
						
					
						
						<li><a href="/quickstart/#quickstart-hive-full-nodes">Hive Nodes</a></li>
						
					
						
						<li><a href="/quickstart/#quickstart-testnet">Hive Testnet</a></li>
						
					
				
			
		</ul>
	</section>
	
		
    <section class="pnl-main-nav-section main-nav-section" url="/tutorials/">
		<h6 class="ctrl-nav-section title">Tutorials</h6>
		<ul class="cont-nav-section content">
			
				
					
						<li><a href="/tutorials/#tutorials-javascript">Javascript</a></li>
					
				
					
						<li><a href="/tutorials/#tutorials-python">Python</a></li>
					
				
					
						<li><a href="/tutorials/#tutorials-ruby">Ruby</a></li>
					
				
					
						<li><a href="/tutorials/#tutorials-recipes">Recipes</a></li>
					
				
			
		</ul>
	</section>
	
		
    <section class="pnl-main-nav-section main-nav-section" url="/services/">
		<h6 class="ctrl-nav-section title">Services</h6>
		<ul class="cont-nav-section content">
			
				
					
					
						
						<li><a href="/services/#services-hive-blog">hive.blog</a></li>
						
					
						
						<li><a href="/services/#services-hivesigner">HiveSigner</a></li>
						
					
						
						<li><a href="/services/#services-jussi">Jussi</a></li>
						
					
						
						<li><a href="/services/#services-imagehoster">ImageHoster</a></li>
						
					
						
						<li><a href="/services/#services-dhf">DHF</a></li>
						
					
				
			
		</ul>
	</section>
	
		
    <section class="pnl-main-nav-section main-nav-section" url="/apidefinitions/">
		<h6 class="ctrl-nav-section title">Appbase API</h6>
		<ul class="cont-nav-section content">
			
				
					
					
						
						<li><a href="/apidefinitions/#apidefinitions-condenser-api">Condenser Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-bridge">Bridge</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-account-by-key-api">Account By Key Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-account-history-api">Account History Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-block-api">Block Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-database-api">Database Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-debug-node-api">Debug Node Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-follow-api">Follow Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-jsonrpc">Jsonrpc</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-market-history-api">Market History Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-network-broadcast-api">Network Broadcast Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-rc-api">Rc Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-reputation-api">Reputation Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-rewards-api">Rewards Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-tags-api">Tags Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-transaction-status-api">Transaction Status Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-witness-api">Witness Api</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-broadcast-ops">Broadcast Ops</a></li>
						
					
						
						<li><a href="/apidefinitions/#apidefinitions-broadcast-ops-communities">Broadcast Ops Communities</a></li>
						
					
				
			
		</ul>
	</section>
	
		
    <section class="pnl-main-nav-section main-nav-section" url="/resources/">
		<h6 class="ctrl-nav-section title">Resources</h6>
		<ul class="cont-nav-section content">
			
				
					
					
						
						<li><a href="/resources/#resources-overview">Overview</a></li>
						
					
						
						<li><a href="/resources/#resources-client-libs">Client Libraries</a></li>
						
					
						
						<li><a href="/resources/#resources-bluepaper">Bluepaper</a></li>
						
					
						
						<li><a href="/resources/#resources-whitepaper">Whitepaper</a></li>
						
					
						
						<li><a href="/resources/#resources-tools">Tools</a></li>
						
					
						
						<li><a href="/resources/#resources-hivesigner-libs">Hivesigner Libs</a></li>
						
					
						
						<li><a href="/resources/#resources-hive-keychain">Hive Keychain</a></li>
						
					
						
						<li><a href="/resources/#resources-developeradvocate">Community & Help</a></li>
						
					
				
			
		</ul>
	</section>
	
		
    <section class="pnl-main-nav-section main-nav-section" url="/glossary/">
		<h6 class="ctrl-nav-section title">Glossary</h6>
		<ul class="cont-nav-section content">
			
				
					
					
						
						<li><a href="/glossary/#glossary-chain-basics">Chain Basics</a></li>
						
					
						
					
						
						<li><a href="/glossary/#glossary-governance">Governance</a></li>
						
					
						
						<li><a href="/glossary/#glossary-transactions">Transactions</a></li>
						
					
						
						<li><a href="/glossary/#glossary-api">API</a></li>
						
					
						
						<li><a href="/glossary/#glossary-market">Market</a></li>
						
					
				
			
		</ul>
	</section>
	
</div>



  <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
</header>
<div class="main" id="top">
  <div class="hero">
    <h1 class="hero__h1">Hive Developer Portal </h1>
    <img class="hero__img" src="/images/honey-comb-92.png" style="position: relative; top: 10px;" />
  </div>
  <p>Applications that interface directly with the Hive blockchain will need to connect to a <code class="highlighter-rouge">hived</code> node. Developers may choose to use one of the public API nodes that are available, or run their own instance of a node.</p>

<h3 id="public-nodes">Public Nodes</h3>

<p>Although <code class="highlighter-rouge">hived</code> fully supports WebSockets (<code class="highlighter-rouge">wss://</code> and <code class="highlighter-rouge">ws://</code>) public nodes typically do not.  All nodes listed use HTTPS (<code class="highlighter-rouge">https://</code>).  If you require WebSockets for your solutions, please consider setting up your own <code class="highlighter-rouge">hived</code> node or proxy WebSockets to HTTPS using <a href="https://gitlab.syncad.com/hive/lineman">lineman</a>.</p>

<table>
  <thead>
    <tr>
      <th>URL</th>
      <th>Owner</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>api.hive.blog</td>
      <td>@blocktrades</td>
    </tr>
    <tr>
      <td>api.openhive.network</td>
      <td>@gtg</td>
    </tr>
    <tr>
      <td>anyx.io</td>
      <td>@anyx</td>
    </tr>
    <tr>
      <td>api.hivekings.com</td>
      <td>@drakos</td>
    </tr>
    <tr>
      <td>hived.privex.io</td>
      <td>@privex</td>
    </tr>
    <tr>
      <td>rpc.ausbit.dev</td>
      <td>@ausbitbank</td>
    </tr>
    <tr>
      <td>api.pharesim.me</td>
      <td>@pharesim</td>
    </tr>
    <tr>
      <td>techcoderx.com</td>
      <td>@techcoderx</td>
    </tr>
    <tr>
      <td>rpc.esteem.app</td>
      <td>@esteem</td>
    </tr>
    <tr>
      <td>hive.roelandp.nl</td>
      <td>@roelandp</td>
    </tr>
  </tbody>
</table>

<p>For a report on the latest public full nodes, check the latest posts on <a href="https://hive.blog/@fullnodeupdate">@fullnodeupdate</a> by <a href="https://hive.blog/@holger80">@holger80</a>.</p>

<h3 id="private-nodes">Private Nodes</h3>

<p>The simplest way to get started is by deploying a pre-built dockerized container.</p>

<h5 id="dockerized-p2p-node">Dockerized p2p Node</h5>

<p><em>To run a p2p node (ca. 2GB of memory is required at the moment):</em></p>

<h5 id="dockerized-full-node">Dockerized Full Node</h5>

<p><em>to run a node with all the data (e.g. for supporting a content website) that uses ca. 140GB of memory and growing:</em></p>

<h3 id="syncing-blockchain">Syncing blockchain</h3>

<p>Normally syncing blockchain starts from very first, <code class="highlighter-rouge">0</code> genesis block. It might take long time to catch up with live network. Because it connectes to various p2p nodes in the Steem network and requests blocks from 0 to head block. It stores blocks in block log file and builds up the current state in the shared memory file. But there is a way to bootstrap syncing by using trusted <code class="highlighter-rouge">block_log</code> file. The block log is an external append only log of the blocks. It contains blocks that are only added to the log after they are irreversible because the log is append only.</p>

<p>Trusted block log file helps to download blocks faster. Various operators provide public block log file which can be downloaded from:</p>
<ul>
  <li>http://files.privex.io</li>
  <li>https://gtg.steem.house/get/blockchain</li>
</ul>

<p>Both <code class="highlighter-rouge">block_log</code> files updated periodically, as of April 2020 uncompressed <code class="highlighter-rouge">block_log</code> file size ~260 GB. (Docker container on <code class="highlighter-rouge">stable</code> branch of Hive source code has option to use <code class="highlighter-rouge">USE_PUBLIC_BLOCKLOG=1</code> to download latest block log and start Steem node with replay.)</p>

<p>Block log should be place in <code class="highlighter-rouge">blockchain</code> directory below <code class="highlighter-rouge">data_dir</code> and node should be started with <code class="highlighter-rouge">--replay-blockchain</code> to ensure block log is valid and continue to sync from the point of snapshot. Replay uses the downloaded block log file to build up the shared memory file up to the highest block stored in that snapshot and then continues with sync up to the head block.</p>

<p>Replay helps to sync blockchain in much faster rate, but as blockchain grows in size replay might also take some time to verify blocks.</p>

<p>There is another <a href="https://github.com/steemit/steem/issues/2391">trick which might help</a> with faster sync/replay on smaller equipped servers:</p>

<div class="highlighter-rouge"><div class="highlight"><pre class="highlight"><code>while :
do
   dd if=blockchain/block_log iflag=nocache count=0
   sleep 60
done
</code></pre></div></div>

<p>Above bash script drops <code class="highlighter-rouge">block_log</code> from the OS cache, leaving more memory free for backing the blockchain database. It might also help while running live, but measurement would be needed to determine this.</p>

<h5 id="few-other-tricks-that-might-help">Few other tricks that might help:</h5>

<p>For Linux users, virtual memory writes dirty pages of the shared file out to disk more often than is optimal which results in steemd being slowed down by redundant IO operations. These settings are recommended to optimize reindex time.</p>

<div class="highlighter-rouge"><div class="highlight"><pre class="highlight"><code>echo    75 | sudo tee /proc/sys/vm/dirty_background_ratio
echo  1000 | sudo tee /proc/sys/vm/dirty_expire_centisecs
echo    80 | sudo tee /proc/sys/vm/dirty_ratio
echo 30000 | sudo tee /proc/sys/vm/dirty_writeback_centisecs
</code></pre></div></div>

<p>Another settings that can be changed in <code class="highlighter-rouge">config.ini</code> is <code class="highlighter-rouge">flush</code> - it is to specify a target number of blocks to process before flushing the chain database to disk. This is needed on Linux machines and a value of 100000 is recommended. It is not needed on OS X, but can be used if desired.</p>

<p>(below info is outdated - need updating)</p>
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>docker run <span class="se">\</span>
    <span class="nt">-d</span> <span class="nt">-p</span> 2001:2001 <span class="nt">-p</span> 8090:8090 <span class="nt">--name</span> steemd-default <span class="se">\</span>
    steemit/steem

docker logs <span class="nt">-f</span> steemd-default  <span class="c"># follow along</span>
</code></pre></div></div>
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>docker run <span class="se">\</span>
    <span class="nt">--env</span> <span class="nv">USE_WAY_TOO_MUCH_RAM</span><span class="o">=</span>1 <span class="se">\</span>
    <span class="nt">-d</span> <span class="nt">-p</span> 2001:2001 <span class="nt">-p</span> 8090:8090 <span class="nt">--name</span> steemd-full <span class="se">\</span>
    steemit/steem

docker logs <span class="nt">-f</span> steemd-full
</code></pre></div></div>

</div>
<div class="footer">
  <a href="#">Back to top</a>
</div>
<script>
    document.getElementById("open-nav").addEventListener("click", function () {
        document.body.classList.toggle("nav-open");
    });
</script>
</body>
</html>


<script src="/js/adjust.js"></script>

